import turtle as t
t.speed(0)
t.shape("turtle")
t.turtlesize(2,2,2)
def up():
    t.fd(5)
def down():
    t.fd(-5)
def left():
    t.left(22.5)
def right():
    t.right(22.5)
def hide():
    t.hideturtle()
def show():
    t.showturtle()
def clear():
    t.clear()
t.onkeypress(up,"Up")
t.onkeypress(left,"Left")
t.onkeypress(right,"Right")
t.onkeypress(hide,"h")
t.onkeypress(show,"s")
t.onkeypress(down,"Down")
t.onkeypress(clear,"c")
t.listen()

